<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 *
 * @abstract 获取品牌信息
 * @author zxj
 *
 */
class RepairBrand extends CI_Controller {
	private  $t_brand = 'maintain_brand';  //品牌表
	function __construct() {
		parent::__construct();
	}

	/**
	 * 产品列表
	 */
	function get_brandList() {
        $message = ''; $success = false; $data = '';
		//查询返回的数组
		$brandList = $this->common_model->selectAll($this->t_brand);
		//重构数据
		foreach ($brandList as $key=>&$vary ) {
            $vary['brand_id'] = (int)$vary['brand_id'];
		}
        unset($vary);

		//json判断处理
		if (empty($brandList)) {
			$message = '没有更多数据....';
		}else{
			$message = '返回成功';
            $success = true;
		}
		json_output($brandList,$message,$success);
	}





}
